import {request} from "../../utils/request"
import type {loginResponseType,userFindType,userFindAllType} from "../../modal/user";
//课程列表
export let courseList= ()=>{
	return request.postRequest<any>("SchoolSys/sub/find")
}
//添加科目
export let addCourseList= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/sub/add",params)
}
//删除科目
export let delCourse= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/sub/del",params)
}
//根据科目获取当前科目的老师
export let teacher= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/getTeachersBySubId",params)
}
//根据科目获取当前科目的老师
export let Allteacher= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/getTeachersOnSub",params)
}
//为当前科目添加老师
export let addCourseTeacher= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/addTeacherToCourse",params)
}
//删除当前科目老师
export let delCourseTeacher= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/delTeacherToCourse",params)
}
//获取所有班级
export let classList= ()=>{
	return request.postRequest<loginResponseType>("SchoolSys/stu/clazzlist")
}
//根据班级查课程表
export let classTable= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/scha/searchByIClazz",params)
}
//换课的审批列表
export let approlist= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/cha/chalist",params)
}
//根据审批状态搜索审批列表
export let statusList= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/cha/search",params)
}
//根据审批状态搜索审批列表
export let changeDetail= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/cha/ChaInfoByID",params)
}
//获取所有审批人

export let examList= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/user/findPasser",params)
}
//获取所有教师

export let teachers= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/teaList",params)
}
//换课申请

export let changeApply= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/cha/addCha",params)
}
//删除申请
export let deletFn= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/cha/delCha",params)
}
//获取菜单列表

export let menuList= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/menu/find",params)
}
//获取权限列表

export let roleList= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/role/find",params)
}
//根据角色获取菜单列表

export let roleMenuFn= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/menu/findByRole",params)
}
//根据菜单名称搜索菜单

export let nameMenu= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/menu/findByName",params)
}
//菜单栏查询

export let menuFind= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/menu/findMenu",params)
}
//添加菜单

export let menuAdd= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/menu/add",params)
}

//删除菜单

export let menuDel= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/menu/del",params)
}
//修改菜单

export let menuUpdate= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/menu/update",params)
}